//
//  Mapping.m
//  UESTCPioneer
//
//  Created by Sway on 14-3-28.
//  Copyright (c) 2014年 Sway. All rights reserved.
//

#import "Mapping.h"

@implementation Mapping


+(NSDictionary*)PioneerMapping{
    //{"comeCode":"school","comeFrom":"电子科技大学校党委","content":" 3月20日，电子
    //    "count":0,"desc":"","id":35,"picName":"","picUrl":{},"time":"2014年03月26日 11:22","title":"新闻测试——百余家用人单位来校揽才","type":"","zipPicUrl":{}},
    NSArray *keyArray =@[@"comeCode",@"comeFrom",@"content",@"commentNum",@"desc",@"id",@"picName",@"picUrl",@"time",@"title",@"type",@"zipPicUrl"];
    NSArray *valueArray=@[@"comeCode",@"comeFrom",@"newsBody",@"numberOfComment",@"desc",@"theId",@"picName",@"picUrl",@"timeAndDate",@"titleBody",@"type",@"zipPicUrl"];
    return [NSDictionary dictionaryWithObjects:valueArray forKeys:keyArray];
}

+(NSDictionary *)MoodShareMapping{
  return @{@"commentNum":@"numberOfComment"
    ,@"content":@"newsBody"
    ,@"id":@"theId"
    ,@"picUrl":@"picUrl"
    ,@"time":@"timeAndDate"
    ,@"userId":@"userId"
    ,@"userName":@"titleBody"
    ,@"eventTitle":@"eventTitle"
    ,@"zipPicUrl":@"zipPicUrl"
           };

}


+(NSDictionary*)PartyNoticeMapping{
    NSArray *keyArray=@[@"chakan"
                        ,@"comfrom"
                        ,@"commentNum"
                        ,@"content"
                        ,@"id"
                        ,@"shoucang"
                        ,@"time"
                        ,@"title"
                        ,@"transnum"
                        ,@"userId"
                        ,@"userName"
                        ];
    NSArray *valueArray=@[
                          @"chakan"
                          ,@"comfrom"
                          ,@"numberOfComment"
                          ,@"newsBody"
                          ,@"theId"
                          ,@"shoucang"
                          ,@"timeAndDate"
                          ,@"titleBody"
                          ,@"transnum"
                          ,@"userId"
                          ,@"userName"
                          ];
    return [[NSDictionary alloc]initWithObjects:valueArray forKeys:keyArray];
}

+(NSDictionary*)PublicityMapping{
    return [self PartyNoticeMapping];
}

+(NSDictionary*)PartyActivityMapping{
    NSArray *keyArray=@[
                        @"branch"
                        ,@"commentNum"
                        ,@"content"
                        ,@"count"
                        ,@"id"
                        ,@"institute"
                        ,@"love"
                        ,@"picUrl"
                        ,@"signUp"
                        ,@"time"
                        ,@"title"
                        ,@"top"
                        ,@"userId"
                        ,@"userName"
                        ,@"zipPicUrl"
                        ];
    NSArray *valueArray=@[
                          @"branch"
                          ,@"numberOfComment"
                          ,@"newsBody"
                          ,@"count"
                          ,@"theId"
                          ,@"institute"
                          ,@"love"
                          ,@"picUrl"
                          ,@"signUp"
                          ,@"timeAndDate"
                          ,@"titleBody"
                          ,@"top"
                          ,@"userId"
                          ,@"userName"
                          ,@"zipPicUrl"
                          ];
    return [[NSDictionary alloc]initWithObjects:valueArray forKeys:keyArray];
}

+ (NSDictionary *)personalBirthMapping
{
    NSArray *keyArray=@[
                        @"content"
                        ,@"date"
                        ,@"flag"
                        ,@"userid"
                        ,@"username"
                        ];
    NSArray *valueArray=@[
                          @"content"
                          ,@"daysLeft"
                          ,@"flag"
                          ,@"userid"
                          ,@"username"
                          ];
    return [[NSDictionary alloc]initWithObjects:valueArray forKeys:keyArray];
}

+(NSDictionary*)PartyDataGuideEntityMapping{
    return @{@"ZN_content":@"content",
             @"ZN_name":@"title",
             @"ZN_picName":@"picName",
             @"ZN_picUrl":@"picUrl",
             @"ZN_time":@"time",
             @"id":@"theId"
             };
}

+(NSDictionary*)partiesMapping{
    return @{@"partyName":@"partyName",@"partyNo":@"partyNo"};
}

+(NSDictionary*)PartyDataLearnEntityMapping{
    return @{@"id":@"theId",
             @"fileName":@"fileName",
             @"comeCode":@"comeCode",
             @"comeFrom":@"comeFrom",
             @"filePath":@"filePath",
             @"fileType":@"fileType",
             @"size":@"size",
             @"time":@"time",
             @"type":@"type",
             @"typeText":@"typeText",
             @"filecontent":@"fileContent"
             };
}

+(NSDictionary*)PartyDataProcessEntityMapping{
    return @{@"content":@"content",@"dangType":@"dangType",@"id":@"theId",@"picPath":@"picPath",@"time":@"time",@"title":@"title"};
}

+(NSDictionary*)PartyDataSpiritEntityMapping{
    return @{@"content":@"content",@"title":@"title",@"desc":@"desc",@"id":@"theId",@"time":@"time",@"tyoe":@"type",@"picName":@"picName",@"picUrl":@"picUrl"};
}

+(NSDictionary*)PartyDataGuideDetailEntityMapping{
    return @{@"ZN_content":@"content",@"ZN_name":@"title",@"ZN_picName":@"picName",@"ZN_picUrl":@"picUrl",@"ZN_time":@"time",@"frontId":@"frontId",@"frontTitle":@"frontTitle",@"id":@"theId",@"nextId":@"nextId",@"nextTitle":@"nextTitle"};
}

+(NSDictionary*)PartyDataMLearnEntityMapping{
    return @{@"comeCode":@"comeCode",@"comeFrom":@"comeFrom",@"fileName":@"fileName",@"filePath":@"filePath",@"fileTyoe":@"fileType",@"id":@"theId",@"time":@"time",@"type":@"type",@"typeText":@"typeText",@"size":@"size"};
}
+(NSDictionary*)PartyDataQAEntityMapping{
    return
  @{@"answer":@"answer",
    @"answerName":@"answerName",
    @"id":@"theId",
    @"question":@"question",
    @"time_ans":@"time_ans",
    @"time_que":@"time_que",
    @"userId":@"userId",
    @"userName":@"userName"
    };
}
/*add 2014.05.10   for 党课视频下载*/
+(NSDictionary*)PartyVedioDownloadEntityMapping{
    return @{@"comeCode":@"comeCode",@"comeFrom":@"comeFrom",@"fileName":@"fileName",@"filePath":@"filePath",@"fileTyoe":@"fileType",@"id":@"theId",@"time":@"time",@"type":@"type",@"typeText":@"typeText",@"size":@"size"};
}
/*add for 党课心得*/
+(NSDictionary*)PartyThinkingReportEntityMapping{
    NSArray *keyArray=@[
                        @"content"
                        ,@"count"
                        ,@"from"
                        ,@"id"
                        ,@"time"
                        ,@"userId"
                        ,@"userName"
                        
                        //                        ,@"newsBody"
                        //                        ,@"numberOfComment"
                        //                        ,@"picUrl"
                        //                        ,@"theId"
                        //                        ,@"timeAndDate"
                        //                        ,@"titleBody"
                        ];
    NSArray *valueArray=@[
                          @"newsBody"
                          ,@"numberOfComment"
                          ,@"from"
                          ,@"theId"
                          ,@"timeAndDate"
                          ,@"userId"
                          ,@"userName"
                          ];
    return [[NSDictionary alloc]initWithObjects:valueArray forKeys:keyArray];
}
/**/
+(NSDictionary *)LeaderboardEntityMapping{
    NSArray *keyArray=@[
                        @"branch"
                        ,@"index"
                        ,@"nowrank"
                        ,@"rankchange"
                        ];
    NSArray *valueArray=@[
                          @"branch"
                          ,@"index"
                          ,@"nowrank"
                          ,@"rankchange"
                          ];
    return [[NSDictionary alloc]initWithObjects:valueArray forKeys:keyArray];
}

+(NSDictionary *)StatisticsEntityMapping{
    NSArray *keyArray=@[
                        @"attention"
                        ,@"institute"
                        ,@"instituteNum"
                        ,@"nowrank"
                        ,@"rankchange"
                        ,@"vitality"
                        ];
    NSArray *valueArray=@[
                          @"attention"
                          ,@"institute"
                          ,@"instituteNum"
                          ,@"nowrank"
                          ,@"rankchange"
                          ,@"vitality"
                          ];
    return [[NSDictionary alloc]initWithObjects:valueArray forKeys:keyArray];
}

+(NSDictionary *)PartyVirtualTestEntityMapping{
    return @{@"id": @"theId",@"content":@"content",@"answer":@"answer"};
}

+(NSDictionary *)PartyerShowEntityMapping{
    return @{
     @"brief":@"brief",
     @"content":@"content",
     @"id":@"theId",
     @"picUrl":@"picUrl",
     @"time":@"time",
     @"zipPicUrl":@"zipPicUrl"
     };
}

+(NSDictionary *)PartyCleanCutureEntityMapping{
    
    return @{
            @"content":@"content",
            @"desc":@"desc",
            @"id":@"theId",
            @"picName":@"picName",
            @"picUrl":@"picUrl",
            @"time":@"time",
            @"title":@"title",
            @"type":@"type",
            @"zipPicUrl":@"zipPicUrl"
     };
}
@end
